package com.xuetang9.fujian.threaddemo.pasdemo;

/**
 * @author: fujian
 * @description:
 * @date: 2021/5/3 11:03
 * @version: V1.0
 * @package: com.xuetang9.fujian.threaddemo.pasdemo
 **/
public class MainTest {
    public static void main(String[] args) {
        CharacterMachine machine = new CharacterMachine();
        Producer producer = new Producer(machine);
        Consumer consumer = new Consumer(machine);
        new Thread(producer).start();
        new Thread(consumer).start();
    }
}
